package com.gifts.ui.page.common;

import org.eclipse.swt.widgets.Composite;

import com.gifts.ui.page.login.FacebookLoginPage;
import com.gifts.ui.page.selectafriend.SelectAFriendsPage;
import com.gifts.ui.page.selectaProduct.SelectAProductPage;
/**
 * Factory class for Page
 * @author dmaung
 *
 */
public class PageFactory {
	public static final int FACEBOOK_LOGIN_PAGE = 0;
	public static final int SELECT_A_FRIEND_PAGE = 1;
	public static final int LIST_SUGGESTION_PAGE = 2;
	
	
	public static Page createPage(int type, Composite parent, int style) {
		switch (type) {
			case FACEBOOK_LOGIN_PAGE: 
				return new  FacebookLoginPage(parent, style);
				
			case SELECT_A_FRIEND_PAGE:
				return new SelectAFriendsPage(parent, style);
			
			case LIST_SUGGESTION_PAGE:
				return new SelectAProductPage(parent, style);
			
		}
		return null;
	}
	
	
	

}
